
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
import time
class Browser_drvice(object):
    def browser_init(self):
        #自动下载对应的驱动
        driver= webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))
        # driver.get("https://www.baidu.com")
        # time.sleep(30)
        return driver


if __name__ == '__main__':
    Browser_drvice().browser_init()
    time.sleep(10)